﻿using System;

using System.Runtime.Serialization;
using MaLu.Data;

namespace Malu.Entity
{

    [Serializable]
    [DataContract(Name = "SLiving")]
    [Table("SLiving", Info = "")]
    public class Living : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("name", DataType.VarChar, Length = 50)]
        public string name { get; set; }


        [DataMember]
        [Column("type", DataType.VarChar, Length = 4)]
        public string type { get; set; }

        [DataMember]
        [Column("gender", DataType.VarChar, Length = 2)]
        public string gender { get; set; }

        [DataMember]
        [Column("address", DataType.VarChar, Length = 50)]
        public string address { get; set; }

        [DataMember]
        [Column("District", DataType.Float)]
        public float District { get; set; }

        [DataMember]
        [Column("Town", DataType.Float)]
        public float Town { get; set; }

       

        [DataMember]
        [Column("account", DataType.VarChar, Length = 50)]
        public string account { get; set; }

      
        [DataMember]
        [Column("peoplecount", DataType.Int32, Length = 4)]
        public int peoplecount { get; set; }

        [DataMember]
        [Column("remark", DataType.VarChar, Length = 50)]
        public string remark { get; set; }

        [DataMember]
        [Column("belongto", DataType.VarChar, Length = 50)]
        public string belongto { get; set; }

       

        [DataMember]
        [Column("year", DataType.Int32, Length = 4)]
        public int year { get; set; }

        [DataMember]
        [Column("halfyear", DataType.Int32, Length = 4)]
        public int halfyear { get; set; }

        [DataMember]
        [Column("money", DataType.Float)]
        public float money { get; set; }

        [DataMember]
        [Column("villagename", DataType.VarChar, Length = 50)]
        public string villagename { get; set; }
    }
}
